﻿# CMakeList.txt : CMake project for hit_position_reconstruct, include source and define
# project specific logic here.
#
cmake_minimum_required(VERSION 3.8)

project("hit_position_reconstruct")

find_package(ROOT REQUIRED)
include_directories(
	${PROJECT_SOURCE_DIR}/inc
	${PROJECT_SOURCE_DIR}/../../my_pub/lib
	${PROJECT_SOURCE_DIR}/../../my_pub/common_lib
	${ROOT_INCLUDE_DIR}
)
include(${ROOT_USE_FILE})

file(GLOB sources
	${PROJECT_SOURCE_DIR}/src/*.cc
	${PROJECT_SOURCE_DIR}/../../my_pub/src/*.cc
)
file(GLOB headers
	${PROJECT_SOURCE_DIR}/inc/*.hh
	${PROJECT_SOURCE_DIR}/../../my_pub/lib/*.hh
	${PROJECT_SOURCE_DIR}/../../my_pub/common_lib
)

# Add source to this project's executable.
add_executable(hit_position_reconstruct "hit_position_reconstruct.cc" "hit_position_reconstruct.hh" ${sources} ${headers})
target_link_libraries(hit_position_reconstruct ${ROOT_LIBRARIES})

install(TARGETS hit_position_reconstruct)
install(DIRECTORY param DESTINATION share)
